<div ng-controller="VMActionBarCtrl" class="btn-toolbar server-btn-toolbar ui-toolbar">

    <div class="btn-group">
        <button type="button" class="btn btn-mini" ng-click="do_create()">
            <img src="/static/images/actionbar/vm_create.png" class="img-size16" alt=""/>
            新建
        </button>
        <button type="button" class="btn btn-mini" ng-click="do_edit()">
            <img src="/static/images/actionbar/settings_16px.png"  alt=""/>
            修改
        </button>
        <button type="button" class="btn btn-mini" ng-click="do_delete()">
            <img src="/static/images/actionbar/vm_delete_32px.png" class="img-size16" alt=""/> 删除
        </button>
        <button type="button" class="btn btn-mini" ng-click="do_template()">存为模板</button>
        <button type="button" class="btn btn-mini" ng-click="do_migrate()" ng-disabled="selected_vm.migrating">迁移</button>
    </div>
    <div class="btn-group">
        <div class="btn-group">

            <button type="button" class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
                <img src="/static/images/actionbar/poweroff_16px.png" alt=""/>关机
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a ng-click="do_shutdown()">关机</a></li>
                <li><a ng-click="do_force_shutdown()">强制关机</a></li>
            </ul>
        </div>
        <div class="btn-group">

            <button type="button" class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
                暂停
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a ng-click="do_suspend()">暂停</a></li>
                <li><a ng-click="do_unsuspend()">恢复</a></li>
            </ul>
        </div>
        <div class="btn-group">

            <button type="button" class="btn btn-mini" ng-click="do_start()">
            <img src="/static/images/actionbar/start_16px.png" alt=""/>启动
            </button>
            <button type="button" class="btn btn-mini" ng-click="do_reboot()">重启</button>

        </div>
        <div class="btn-group">

            <button type="button" class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
                <img src="/static/images/actionbar/take_snapshot_16px.png" alt=""/>快照
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a ng-click="do_snapshot()">快照</a></li>
                <li><a ng-click="do_restore_snapshot()">快照恢复</a></li>
            </ul>
        </div>
        <div class="btn-group">
            <button type="button" class="btn btn-mini" ng-click="do_hibernate()">休眠</button>
            <button type="button" class="btn btn-mini" ng-disabled="!selected_vm" ng-click="do_clone()"><img src="/static/images/actionbar/vm_clone.png" alt=""/>克隆</button>
        </div>
    </div>
</div>